package com.cory.boot.config;

import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.InitBinder;

/**
 * @author xiongcong
 * @date 2022-05-18
 */
@ControllerAdvice
public class DataBinder {

    @InitBinder
    public void initBinder(WebDataBinder binder) {
        binder.setAutoGrowCollectionLimit(5024);
    }
}
